var express = require('express');
var router = express.Router();
const path = require('path');

/* GET home page. */
router.get('/', function (req, res, next) {
  res.sendFile(path.resolve(__dirname, '../public/a.html'));
});

router.get('/abc', function (req, res, next) {
  res.send('我不好!!!');
});

router.get('/users', function (req, res) {
  res.send('1');
})

router.get('/images', function (req, res) {
  res.redirect('/abc');
})

module.exports = router;
